<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .div {
      width: 200px;
      /* height: 200px; */
      padding: 10px;
      display: flex;
      gap: 10px;
      > div {
        width: 50px;
        height: 50px;
        border: 1px solid #ffa861;
        background-color: #ffa861;
      }
    }
  </style>
</head>
<body>
<div>
  <div class="div">
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </div>
  <div class="div" style="display: flex; 
  flex-wrap: wrap;">
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </div>
  <div class="div" style="display: flex; flex-direction: column;">
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </div>
  <div class="div" style="display: flex; flex-direction: column-reverse;">
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </div>
</div>
</body>
</html>